Mega Code Archive

Categories
1) Android
2) ASP.Net
3) ASP.Net Tutorial
4) C
5) C Tutorial
6) C#
7) C# Book
8) C# by API
9) C# Tutorial
10) C++
11) C++ Tutorial
12) Delphi
13) Flash ActionScript
14) Flex
15) Java
16) Java Book
17) Java by API
18) Java Tutorial
19) JavaScript DHTML
20) JavaScript Reference
21) JavaScript Tutorial
22) MSOfficeExcel 2007 Tutorial
23) MSOfficePowerPoint 2007 Tutorial
24) MSOfficeWord 2007 Tutorial
25) MSSQL
26) MSSQL Tutorial
27) MySQL
28) MySQL Tutorial
29) Oracle PLSQL
30) Oracle PLSQL Tutorial
31) Perl
32) Php
33) PostgreSQL
34) Python
35) Python Tutorial
36) Ruby
37) Silverlight
38) VB.Net
39) VB.Net by API
40) VB.Net Tutorial
41) Visual C++ .NET
42) VisualBasic Script
43) XML
44) XML Tutorial
 
C++ Tutorial
1) Array
2) Bitset
3) Class
4) Data Types
5) Deque
6) Development
7) Exceptions
8) File Stream
9) Function
10) Language Basics
11) List
12) Map Multimap
13) Operator Overloading
14) Operators Statements
15) Pointer
16) Queue Stack
17) Set Multiset
18) STL Algorithms Binary Search
19) STL Algorithms Heap
20) STL Algorithms Helper
21) STL Algorithms Iterator
22) STL Algorithms Merge
23) STL Algorithms Min Max
24) STL Algorithms Modifying Sequence Operations
25) STL Algorithms Non Modifying Sequence Operations
26) STL Algorithms Sorting
27) STL Introduction
28) String
29) Structure
30) Template
31) Valarray
32) Vector
Function
1) A Demonstration of an Inline Function
2) A function may return an object to the caller
3) A local variable is initialized each time its block is entered
4) Ambiguous function call with function with default parameter value
5) Arguments passed by pointer
6) Arguments passed by reference
7) Array passed by pointer
8) Arrays of pointers to functions
9) Automatic type conversions can affect overloaded function resolution
10) Change a call-by-value parameter does not affect the argument
11) Change the contents of an array using a function
12) Compare pass-by-value and pass-by-reference with references
13) Const reference
14) Constructors, destructors, and passing objects
15) Copy constructor invoked when passing an object to a function
16) Create overloaded print() and println() functions that display various types of data
17) Data slicing with passing by value
18) Declare int array parameter for a function without indicating the array length
19) Default Arguments vs Overloading
20) Default arguments with parameters
21) Define function to accept three int parameters
22) Define function to add two parameters together
23) Define overload function with short integer parameter
24) Definition of function template maximum
25) Demonstrate default arguments
26) Demonstrate recursion
27) Demonstrate the pointer version of swap()
28) Demonstrates missing and default arguments
29) Finding the Address of an Overloaded Function
30) Function inlining
31) Function level variable
32) Function parameter
33) Function pointer for overloaded function
34) Function with two regular parameters and one parameter with default value
35) Functions in an expression
36) Functions that take no arguments
37) Handling an array parameter as a pointer
38) Inline Functions
39) Inline functions work best on short functions that are used repeatedly This example calculates the square of an integer
40) More than one returning value
41) Multiple return statements in a function
42) Orders two arguments using pointers
43) Overload a function three times
44) Overload function by parameter type
45) Overload function with array type
46) Overload functions with two parameters
47) Overloading a function - removing ambiguity with a cast
48) Overloading a function with const reference parameters
49) Overloading a function with reference parameters
50) Overloading abiguity
51) Overloading ambiguity
52) Overloading functions with difference in number of parameters
53) Pass a pointer to a function
54) Pass a string to a function
55) Pass an object to a function
56) Pass by reference by using pointer
57) Pass by reference using references
58) Pass int array to a function
59) Pass variable address to a function
60) Passing a two-dimensional array to a function
61) Passing an array to a function
62) Passing int by value
63) Passing Objects to Functions
64) Passing pointers to objects
65) Passing references to objects
66) Print a string backwards using recursion
67) Recursive factorial function
68) Return a double value from a function
69) Return a pointer from a function
70) Return a value from a function
71) Return class instance from a function
72) Return objects from a function
73) Return void from a function
74) Returning a pointer from function
75) Returning a reference
76) Returning multiple values from a function using pointer
77) Returning multiple values from a function using references
78) Sorts an array using pointers
79) The function call stack and activation records
80) The iterative factorial method
81) The recursive fibonacci function
82) The use of and its support macros va_arg, va_start, and va_end
83) This program contains two functions
84) Use a const pointer parameter
85) Use a function prototype to enforce strong type checking
86) Use a functions definition as its prototype, appears before main
87) Use array as functions parameter
88) Use function pointers as a function parameter
89) Use reference parameters to create the swap() function
90) Use two default parameter values
91) Use typedef to define a function type for function pointer
92) Using a reference parameter
93) Using function pointers
94) Using multiple default parameter values
95) Using pointers with const methods
96) Using reference parameters
97) Var args has to be the last one
98) Void function with return statement